package com.hae.shop.order.api;

import com.hae.shop.common.base.Response;
import com.hae.shop.order.model.OrderReqDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.validation.Valid;

/**
 * 订单服务
 */
@Api("订单服务")
public interface OrderService {

    /**
     * 创建订单接口
     * @param orderReqDto
     * @return
     */
    @ApiOperation("创建订单接口")
    @RequestMapping("/createOrder")
    Response<String> createOrder(@RequestBody @Valid OrderReqDto orderReqDto) throws Exception;
}
